/**
 * Copyright(C): CETC-32
 * @Description: 用户权限数据库数据库实体操作
 * @author: youqing
 * @version: 1.0
 * @date: 2020/9/11 10:55
 * 更改描述：
 */
package com.cetc32.dh.mybatis;

import com.cetc32.dh.dto.PermissionDTO;
import com.cetc32.dh.entity.BaseAdminPermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mapper.MyMapper;
import java.util.List;

/**
 * @Title: BaseAdminPermissionMapper
 * @Description:
 * @author: youqing
 * @version: 1.0
 * @date: 2020/11/21 11:19
 */
@Repository
public interface BaseAdminPermissionMapper extends MyMapper<BaseAdminPermission> {

    List<PermissionDTO> getPermissionList();

    List<PermissionDTO> parentPermissionList();

    int updatePermission(BaseAdminPermission permission);

    List<PermissionDTO> getPermissionListByPId(@Param("pid") Integer pid);
}